package day2;

import java.util.Scanner;

/**
 * @author oldliu
 * @since 1.0
 */
public class TestComputer {
    public static void main(String[] args) {
        Computer c=new Computer();
        System.out.println("1:格式化分区：");
        Scanner in=new Scanner(System.in);
        System.out.print("分为几个区：");
        int k=in.nextInt();
        String []panfu=new String[k];
        int []size=new int[k];

        for(int i=1;i<=k;i++){
            System.out.println("请输入盘符和大小:");
            panfu[k-1]=in.next();
            size[k-1]=in.nextInt();
        }
        c.format(panfu,size);
    }
}
